package com.his.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * 药品信息表
 * @TableName dzm_his_medicines
 */
public class DzmHisMedicines implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer medicinesId;

    /**
     * 药品编号
     */
    private String medicinesNumber;

    /**
     * 药品名称
     */
    private String medicinesName;

    /**
     * 药品分类 
     */
    private String medicinesClass;

    /**
     * 处方类型
     */
    private String prescriptionType;

    /**
     * 单位（g/条）
     */
    private String unit;

    /**
     * 换算量
     */
    private Integer conversion;

    /**
     * 关键字
     */
    private String keywords;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 修改时间
     */
    private String updateTime;

    /**
     * 生产厂家
     */
    private String producter;

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Integer getMedicinesId() {
        return medicinesId;
    }

    /**
     *
     */
    public void setMedicinesId(Integer medicinesId) {
        this.medicinesId = medicinesId;
    }

    /**
     * 药品编号
     */
    public String getMedicinesNumber() {
        return medicinesNumber;
    }

    /**
     * 药品编号
     */
    public void setMedicinesNumber(String medicinesNumber) {
        this.medicinesNumber = medicinesNumber;
    }

    /**
     * 药品名称
     */
    public String getMedicinesName() {
        return medicinesName;
    }

    /**
     * 药品名称
     */
    public void setMedicinesName(String medicinesName) {
        this.medicinesName = medicinesName;
    }

    /**
     * 药品分类 
     */
    public String getMedicinesClass() {
        return medicinesClass;
    }

    /**
     * 药品分类 
     */
    public void setMedicinesClass(String medicinesClass) {
        this.medicinesClass = medicinesClass;
    }

    /**
     * 处方类型
     */
    public String getPrescriptionType() {
        return prescriptionType;
    }

    /**
     * 处方类型
     */
    public void setPrescriptionType(String prescriptionType) {
        this.prescriptionType = prescriptionType;
    }

    /**
     * 单位（g/条）
     */
    public String getUnit() {
        return unit;
    }

    /**
     * 单位（g/条）
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }

    /**
     * 换算量
     */
    public Integer getConversion() {
        return conversion;
    }

    /**
     * 换算量
     */
    public void setConversion(Integer conversion) {
        this.conversion = conversion;
    }

    /**
     * 关键字
     */
    public String getKeywords() {
        return keywords;
    }

    /**
     * 关键字
     */
    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    /**
     * 创建时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     * 修改时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 生产厂家
     */
    public String getProducter() {
        return producter;
    }

    /**
     * 生产厂家
     */
    public void setProducter(String producter) {
        this.producter = producter;
    }



    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisMedicines other = (DzmHisMedicines) that;
        return (this.getMedicinesId() == null ? other.getMedicinesId() == null : this.getMedicinesId().equals(other.getMedicinesId()))
                && (this.getMedicinesNumber() == null ? other.getMedicinesNumber() == null : this.getMedicinesNumber().equals(other.getMedicinesNumber()))
                && (this.getMedicinesName() == null ? other.getMedicinesName() == null : this.getMedicinesName().equals(other.getMedicinesName()))
                && (this.getMedicinesClass() == null ? other.getMedicinesClass() == null : this.getMedicinesClass().equals(other.getMedicinesClass()))
                && (this.getPrescriptionType() == null ? other.getPrescriptionType() == null : this.getPrescriptionType().equals(other.getPrescriptionType()))
                && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
                && (this.getConversion() == null ? other.getConversion() == null : this.getConversion().equals(other.getConversion()))
                && (this.getKeywords() == null ? other.getKeywords() == null : this.getKeywords().equals(other.getKeywords()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
                && (this.getProducter() == null ? other.getProducter() == null : this.getProducter().equals(other.getProducter()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMedicinesId() == null) ? 0 : getMedicinesId().hashCode());
        result = prime * result + ((getMedicinesNumber() == null) ? 0 : getMedicinesNumber().hashCode());
        result = prime * result + ((getMedicinesName() == null) ? 0 : getMedicinesName().hashCode());
        result = prime * result + ((getMedicinesClass() == null) ? 0 : getMedicinesClass().hashCode());
        result = prime * result + ((getPrescriptionType() == null) ? 0 : getPrescriptionType().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        result = prime * result + ((getConversion() == null) ? 0 : getConversion().hashCode());
        result = prime * result + ((getKeywords() == null) ? 0 : getKeywords().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getProducter() == null) ? 0 : getProducter().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", medicinesId=").append(medicinesId);
        sb.append(", medicinesNumber=").append(medicinesNumber);
        sb.append(", medicinesName=").append(medicinesName);
        sb.append(", medicinesClass=").append(medicinesClass);
        sb.append(", prescriptionType=").append(prescriptionType);
        sb.append(", unit=").append(unit);
        sb.append(", conversion=").append(conversion);
        sb.append(", keywords=").append(keywords);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", producter=").append(producter);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}